package com.zhenmyan.secdeal.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhenmyan.secdeal.mapper.GoodsMapper;
import com.zhenmyan.secdeal.pojo.Goods;
import com.zhenmyan.secdeal.service.GoodsService;
import com.zhenmyan.secdeal.vo.GoodsVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * description:
 *
 * @author 颜真明
 * @date 2023/5/11  6:54
 */
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements GoodsService {

    @Resource
    private GoodsMapper goodsMapper;

    @Override
    public List<GoodsVo> getGoodsVo() {
        return goodsMapper.getGoodsVo();
    }

    @Override
    public GoodsVo getGoodsVoById(Long goodsId) {
        return goodsMapper.getGoodsVoById(goodsId);
    }
}

